package com.xmall.mapper;

import com.xmall.bean.bo.FeedbackBO;
import com.xmall.bean.table.Feedback;
import com.xmall.bean.table.FeedbackExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FeedbackMapper {
    long countByExample(FeedbackExample example);

    int deleteByExample(FeedbackExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Feedback record);

    int insertSelective(Feedback record);

    List<Feedback> selectByExample(FeedbackExample example);

    Feedback selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Feedback record, @Param("example") FeedbackExample example);

    int updateByExample(@Param("record") Feedback record, @Param("example") FeedbackExample example);

    int updateByPrimaryKeySelective(Feedback record);

    int updateByPrimaryKey(Feedback record);

    /**
     * 插入反馈信息
     * @param feedbackBO
     * @param map
     */
    void insertFeedback(@Param("feedback") FeedbackBO feedbackBO, @Param("user") Map<String, Object> map);
}